from django.shortcuts import render

# Create your views here.

from rest_framework.views import APIView
from rest_framework.response import Response


class T1(APIView):
    def get(self, request, *args, **kwargs):
        data = {
            'status': 200,
            'msg': [
                {'name': '你好'},
                {'name': '我好'},
                {'name': '大家好'}
            ]
        }

        return Response(data=data, status=200)


class T2(APIView):
    def get(self, request, *args, **kwargs):
        return Response(data='你好', status=200)


class T3(APIView):
    def get(self, request, *args, **kwargs):
        return Response(data='心态战略', status=200)
